<template>
	<!--
    	作者：offline
    	时间：2018-09-11
    	描述：实物对账单申请--订单信息
    -->
    <div class="m-view-orderInfo">
		<ag-grid-vue  class="m-agTableContent ag-theme-balham" :gridOptions="gridOptions" :columnDefs="columnDefs" :rowData="rowData"  v-loading="loading" rowSelection="single"></ag-grid-vue>
	</div>
</template>

<script>
	// import _Api from "@/api";
	import localeText from "@/i18n/agGridText";
	
	export default{
		data(){
			return{
				columnDefs:[],
				rowData:[],
				loading:false
			}
		},
		beforeMount(){
			this.gridOptions = {
				context: {
					componentParent: this
				},
        	    enableColResize: true,
        	    localeText: localeText,
        	    suppressRowClickSelection: true
//      	    onGridReady: function(params) {
//			    	params.api.sizeColumnsToFit();
//			    }
			};
			this.columnDefs = [
			{	headerName:"采购订单号",field:"purOrdNo"},
			{	headerName:"订单行号",field:"purOrdMxNo"},
			{	headerName:"物料号",field:"matCode"},
			{	headerName:"物料描述",field:"matName",tooltipField:'matName'},
			{	headerName:"订单数量",field:"orderAmount"},
			{	headerName:"期间入库数量",field:""},
			{	headerName:"勾选入库数量",field:""},
			{	headerName:"单位",field:"unitCode"},
			{	headerName:"订单单价",field:"unitPrice"},
			{	headerName:"合计金额",field:""},
			{	headerName:"勾选金额",field:""}]
		}
	}
</script>